/**
 * Created by lamb
 * Time: 12-1-29 下午3:22
 */
var mysql = require('mysql');

var client = mysql.createClient({
    host: 'b3logyunrds.mysql.aliyun.com',
    port: '3306',
    user: 'b3logroot',
    password: 'r515c19fd',
    database:'b3logyundb'
});

client.query(
    'SELECT * FROM TEST',
    function selectCb(err, results, fields) {
        console.log(results);
        client.end();
    }
);